home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
loa_and_the_island.swf
/
scripts
/
DefineSprite_772
/
frame_8
/
PlaceObject2_575_278
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-03-17
|
778b
|
26 lines
onClipEvent(enterFrame){
if(_root.paused == false)
{
if(_root.level.sprite._x > _X - 100 + _parent._x and _root.level.sprite._x < _X + 100 + _parent._x and _root.level.sprite._y > _Y - 100 + _parent._y and _root.level.sprite._y < _Y + 100 + _parent._y and _root.level.sprite.inair == false)
{
gotoAndStop(1);
if(key.isdown(88) and keypressed == false)
{
_root.paused = true;
_root.conversation = true;
keypressed = true;
_root.level.sprite.gotoAndStop("stand");
_root.topic = "pillparents";
}
}
else
{
gotoAndStop(2);
}
if(key.isdown(88) == false)
{
keypressed = false;
}
}
}